package com.xxcxcxcx.jobsystem.common;

import java.util.HashMap;
import java.util.Map;

public class JobsClass {
    public static int[] xp={10,100,200,400,550,700,1000,1200,1400,2000};
    public static String Farmer="farmer";
    public static String Herdsman="herdsman";
    public static String Miner="miner";
    public static String Lumberman="lumberman";
    public static String Cook="cook";
    public static String Blacksmith="blacksmith";
    public static String Enchanter="enchanter";
    public static String Brewmaster="brewmaster";
    public static String Speed="speed";
    public static String MeleeAttack="melee_attack";
    public static String RemoteAttack="remote_attack";
    public static String Endurance="endurance";
    public static String[] Jobs= {Farmer,Herdsman,Miner,Lumberman,Cook,Blacksmith,Enchanter,Brewmaster,Speed,MeleeAttack,RemoteAttack,Endurance};
    private static Map<String,Integer> jobmap;

    public static boolean isJob(String jobname) {
        return jobmap.containsKey(jobname);
    }

    static{
        jobmap = new HashMap<>();
        for(int i=0;i<Jobs.length;i++) {
            jobmap.put(Jobs[i],i);
        }
    }
}
